const path = require('path');
const resolve = dir=>path.resolve(__dirname,dir);
const sassResourcesLoader = require('craco-sass-resources-loader');


module.exports = {
 
    style:{
        sass: {
            loaderOptions: {
                sourceMap: true,
            }
        },
    },
    plugins: [
        {
          plugin: sassResourcesLoader,
          options: {
            resources: './src/assets/css/base.scss',
          },
        },
      ],

      webpack:{
        alias:{
            "@":resolve("src"),
            "assets":resolve("src/assets"),
            "common":resolve("src/common"),
            "components":resolve("src/components"),
            "router":resolve("src/router"),
            "services":resolve("src/services"),
            "store":resolve("src/store"),
            "views":resolve("src/views")
        }
    },

}